package com.example.design.patterns.geekbang.结构型.结构类似的模式.适配器模式.兼容老版本接口;

import java.util.Collection;
import java.util.Iterator;

public class Collections {
    public static Enumeration enumeration(final Collection c) {
        return new Enumeration() {
            Iterator i = c.iterator();

            public boolean hasMoreElments() {
                return i.hasNext();
            }
        };
    }
}
